/* 
 * File:   global_definitions.h
 * Author: oddi
 *
 * Created on January 25, 2010, 6:55 PM
 */

#ifndef _GLOBAL_DEFINITIONS_H
#define	_GLOBAL_DEFINITIONS_H

#ifdef	__cplusplus
extern "C" {
#endif

    /*physical constants*/
    #define ELECTRON_MASS (9.109e-28)
    #define ELECTRON_CHARGE (-4.8032e-10)
    #define LIGHT_SPEED (3e10)
    #define E_M (ELECTRON_CHARGE)/(ELECTRON_MASS)
    /*common macros*/
    #define MAX(a,b) ((a >= b) ? (a) : (b))
    #define MIN(a,b) ((a <= b) ? (a) : (b))

#ifdef	__cplusplus
}
#endif

#endif	/* _GLOBAL_DEFINITIONS_H */

